package me.yushuai.wukong.base.mapper;


import me.yushuai.wukong.base.api.dto.CreateHsCodeDTO;
import me.yushuai.wukong.base.api.dto.HsCodeDTO;
import me.yushuai.wukong.base.api.dto.UpdateHsCodeDTO;
import me.yushuai.wukong.base.entity.HsCode;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhoushuai@189.cn
 * @since 2023-10-17
 */
@Component
@Mapper(componentModel = "spring")
public interface HsCodeMapper {

    HsCode mapper(CreateHsCodeDTO dto);

    HsCode mapper(UpdateHsCodeDTO dto);

    HsCodeDTO mapper(HsCode hsCode);

    List<HsCodeDTO> mapper(List<HsCode> content);
}
